<?php

namespace BaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * OrdersSuccess
 *
 * @ORM\Table(name="orders_success", options={"comment":"订单交易成功表"})
 * @ORM\Entity()
 */
class OrdersSuccess
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="order_no", type="string", length=45,  options={"comment":"订单号"})
     */
    private $order_no;

    /**
     * @var string
     *
     * @ORM\Column(name="trade_no", type="string", length=120, nullable=true, options={"comment":"第三方交易号"})
     */
    private $trade_no;

    /**
     * @var integer
     *
     * @ORM\Column(name="type", type="smallint", nullable=true, options={"comment":"支付方式"})
     */
    private $type;

    /**
     * @var string
     *
     * @ORM\Column(name="uid", type="string", options={"comment":"订单购买者Uid"})
     */
    private $Uid;


    /**
     * @var string
     *
     * @ORM\Column(name="purchase_total_price", type="decimal", precision=10, scale=2, options={"comment"="进货总价", "default"="0.00"})
     */
    private $purchase_total_price;

    /**
     * @var string
     *
     * @ORM\Column(name="total_profit", type="decimal", precision=10, scale=2, nullable=true, options={"comment"="总利润(总价-进货总价)", "default"="0.00"})
     */
    private $total_profit;

    /**
     * @var string
     *
     * @ORM\Column(name="total", type="decimal", precision=10, scale=2,  nullable=true, options={"comment"="总价=总邮费+总商品价格"})
     */
    private $money;

    /**
     * @var string
     *
     * @ORM\Column(name="goods_total", type="decimal", precision=10, scale=2,  nullable=true, options={"comment"="商品总价"})
     */
    private $goods_total;

    /**
     * @var string
     *
     * @ORM\Column(name="postage_total", type="decimal", precision=10, scale=2, nullable=true,options={"comment"="邮费总价", "default"="0.00"})
     */
    private $postage_total;

    /**
     * @var string
     *
     * @ORM\Column(name="total_distribution", type="decimal", precision=10, scale=2, nullable=true,options={"comment"="分销奖励总价", "default"="0.00"})
     */
    private $total_distribution;


    /**
     * @var string
     *
     * @ORM\Column(name="p_uid", type="string",length=255, nullable=true, options={"comment":"上级用户编号"})
     */
    private $p_uid;


    /**
     * @var string
     *
     * @ORM\Column(name="platform_revenue", type="decimal", precision=10, scale=2, nullable=true,options={"comment"="平台收入", "default"="0.00"})
     */
    private $platform_revenue;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;
}
